/**
 * 
 */
package org.swing.utility.jms.mail;

import java.io.IOException;
import java.io.OutputStream;

import javax.mail.Message;
import javax.mail.MessagingException;
import javax.mail.Session;
import javax.mail.URLName;

/**
 * @author lqnhu
 *
 */
public class FileMsgTransport extends AbstractFileTransport {
	public FileMsgTransport(Session session, URLName urlname) {
		super(session, urlname);
	}

	@Override
	public void writeMessage(Message message, OutputStream os)
			throws IOException, MessagingException {
		message.writeTo(os);
	}

	@Override
	protected String getFilenameExtension() {
		return "msg";
	}
}
